package com.hsurosy.hsuchain.nft.api.pay.constant;

/**
 * 支付错误码枚举
 *
 * @Author Hsu琛君珩
 * @Date 2024-10-04 17:09
 * @Description
 * @Version: v1.0.0
 */
public enum PayErrorCode implements ErrorCode {

    /**
     * 支付单创建失败
     */
    PAY_ORDER_CREATE_FAILED("PAY_ORDER_CREATE_FAILED", "支付单创建失败"),

    /**
     * 支付成功回调处理失败
     */
    PAY_SUCCESS_NOTICE_FAILED("PAY_SUCCESS_NOTICE_FAILED", "支付成功回调处理失败"),

    /**
     * 退款创建失败
     */
    REFUND_CREATE_FAILED("REFUND_CREATE_FAILED", "退款创建失败"),

    /**
     * 退款成功回调处理失败
     */
    REFUND_SUCCESS_NOTICE_FAILED("REFUND_SUCCESS_NOTICE_FAILED", "退款成功回调处理失败");

    /**
     * 错误码
     */
    private String code;

    /**
     * 错误信息
     */
    private String message;

    PayErrorCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String getCode() {
        return this.code;
    }

    @Override
    public String getMessage() {
        return this.message;
    }
}
